<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
    <div>
        ?u=jd_video_card
    </div>


    <script language="javascript" type="text/javascript"> 
        var list = {
            jd_video_card : 'https://list.jd.com/list.html?cat=670,677,679',
            jd_cpu : 'https://list.jd.com/list.html?cat=670,677,678',
            jd_memory : 'https://list.jd.com/list.html?cat=670,677,680',
            tb_2 : 'https://2.taobao.com/',
        }
        
        function getParameterByName(name) {
            name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
            var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
            results = regex.exec(location.search);
            return results == null ? "": decodeURIComponent(results[1]);
        }

        var key = getParameterByName("u");
        var url = list[key];

        if (url) {
           // 以下方式直接跳转
            window.location.href= url; 
        }
        
    </script>
</body>
</html>